<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
    <script src="../resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
    <link href="../resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../resources/css/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/themes/default/easyui.css" rel="stylesheet" type="text/css" />

    <title></title>
    
    <script type="text/javascript">

        $(function () {
            $("#TE_num").val("0");

        });
              

    </script>

    <script src="../Res/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type='text/javascript'>
        function ajaxFrom(form, url) {
            progressComm();
            $.ajax({
                url: url,
                type: "Post",
                data: $(form).serialize(),
                dataType: "json",
                success: function (data) {
                    $.messager.progress('close');
                    if ($.messager) {
                        $.messager.defaults.cancel = '返回';
                        $.messager.defaults.ok = '继续';

                        $.messager.confirm('操作提示', data, function (r) {
                            if (!r) {
                                window.location.href = subjectI_examination.jsp;
                                //alert("aaaaaaaa");
                            }
                        });
                    }

                }
            });

        }

        $(function () {
            
            $("form").submit(function (form) {
                if (form.result) {
                    ajaxFrom(this, this.ac.tion);
                }
                return false;
            });
        });
    </script>
</head>
<body>
    <div class="mbx">
        
      创建  考试

    </div>
    <form action="/Insert" method="post">
    
    <fieldset>
        <legend>
            <input class="submitcss" type="submit" value="创建" />
            <input class="submitcss" type="button" onclick="BackList('subjectI_examination.jsp')" value="返回" />
        </legend>
        <div class="bigdiv">
                 
            <div class="editor-label">
                <label for="exaId">考试编号</label>
            </div>
            <div class="editor-field">
                <input  data-val="true" data-val-length="长度不可超过100" data-val-length-max="100" data-val-required="不能为空" id="exaId" name="exaId"  style="text-align:left" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="TE_NO" data-valmsg-replace="true"></span>
            </div>
        <div class="editor-label">
          <label for="exaSubject">考试科目</label>
                 
             
        </div>
        <div class="editor-field">
      			 科目一理论
              <input data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" data-val-required="不能为空" id="exaSubject" name="exaSubject" type="hidden" value="科目一理论" />
        
           
           
     
        </div>     
            <div class="editor-label">
                <label for="exaName">考试名称</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过100" data-val-length-max="100" data-val-required="不能为空" id="exaName" name="exaName" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="TE_title" data-valmsg-replace="true"></span>
            </div>  
            
            
              <div class="editor-label" style="display:none;">
                <label for="TE_num">考试人数</label>
            </div>
            <div class="editor-field" style="display:none;">
                <input class="text-box single-line" data-val="true" data-val-number="字段 考试人数 必须是一个数字。" data-val-range="数值超出范围" data-val-range-max="2147483646" data-val-range-min="0" data-val-required="不能为空" id="TE_num" name="TE_num" onkeyup="isInt(this)" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="TE_num" data-valmsg-replace="true"></span>
            </div> 
            
                                 

                       
               
            <div class="editor-label">
                <label for="exaTime">考试时间</label>
            </div>
            <div class="editor-field">
                <input class="input-textbox" data-val="true" data-val-required="不能为空" id="exaTime" name="exaTime" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd HH:mm:ss&#39;})" style="width: 120px;" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="TE_time" data-valmsg-replace="true"></span>
            </div>        
            
             
            <div class="editor-label">
                <label for="exaPrincipal">负责人</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="exaPrincipal" name="exaPrincipal" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="TE_UID" data-valmsg-replace="true"></span>
            </div>     
                <br style="clear: both;" />
            <div class="editor-label">
                <label for="exaDescription">考试说明</label>
            </div>
            <div class="textarea-box">
                <textarea cols="20" data-val="true" data-val-length="长度不可超过16" data-val-length-max="16" id="exaDescription" name="exaDescription" rows="2">
</textarea>
                <span class="field-validation-valid" data-valmsg-for="TE_remark" data-valmsg-replace="true"></span>
            </div>
               
        </div>
    </fieldset>

    </form>
</body>
</html>
